<?php defined('LFNC_VERSION') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: url_match.lfnc.php 258 2009-05-21 18:22:10Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/regexp/url_match.lfnc.php $
*/


define('URL_PATTERN', '~^(ftp|http|https)\://$~i'); // ???

function url_match($url) {
	return (bool)preg_match(URL_PATTERN, $url);
}


?>